package com.zelix;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.util.EventObject;
import javax.swing.*;
import javax.swing.text.Document;
import javax.swing.text.JTextComponent;

class e4 extends d4
    implements iq, jz
{

    Frame b;
    String c;
    om d;
    it e;
    t3 f;
    JLabel g;
    JLabel h;
    JTextField i;
    JButton j;
    JButton k;
    static String l[];
    private static String z[];

    e4(om om1, it it, t3 t3, Frame frame, iy iy1)
    {
        b = frame;
        d = om1;
        e = it;
        f = t3;
        iy1.a((is)om1, this, z[8]);
        hq hq1 = new hq(this);
        j0 j0_1 = new j0(this);
        setLayout(j0_1);
        c = d.b();
        String s = d.a() + z[1] + ((is)d).j();
        g = new JLabel(s);
        add(g, z[7]);
        h = new JLabel(c);
        add(h, z[6]);
        i = new JTextField(c);
        i.addActionListener(hq1);
        i.getDocument().addDocumentListener(new fz(this));
        add(i, z[2]);
        j = new JButton(z[5]);
        j.setEnabled(false);
        j.addActionListener(hq1);
        add(j, z[0]);
        k = new JButton(z[4]);
        k.addActionListener(hq1);
        k.setEnabled(false);
        add(k, z[3]);
        j0_1.a(l);
    }

    public void a(ActionEvent actionevent)
    {
label0:
        {
            boolean flag = tb.b;
            Component component = (Component)actionevent.getSource();
            if(component == j)
            {
                a();
                if(!flag)
                    break label0;
            }
            if(component == k)
            {
                i.setText(c);
                j.setEnabled(false);
                k.setEnabled(false);
                zz.b(i);
                if(!flag)
                    break label0;
            }
            a();
        }
    }

    void a()
    {
        String s = i.getText();
        if(!s.equals(c))
            try
            {
                synchronized(e)
                {
                    d.a(s);
                    h.setText(s);
                    j.setEnabled(false);
                    k.setEnabled(false);
                    c = s;
                    int i1 = f.getSelectedIndex();
                    ((DefaultListModel)f.getModel()).setElementAt(s, i1);
                    f.setSelectedIndex(i1);
                    f.ensureIndexIsVisible(i1);
                    zz.b(i);
                }
            }
            catch(ac ac1)
            {
                new f2(b, z[9], ac1.getMessage());
            }
    }

    public void a(gs gs, Object obj, Object obj1, Object obj2)
    {
        new kz(this, gs, obj, obj1, obj2);
    }

    public void b(gs gs, Object obj, Object obj1, Object obj2)
    {
        c = d.b();
        String s = d.a() + z[1] + ((is)d).j();
        g.setText(s);
        h.setText(c);
        i.setText(c);
        k.setEnabled(false);
        j.setEnabled(false);
        zz.b(i);
    }

    public void a(String s)
    {
label0:
        {
            if(!s.equals(c))
            {
                j.setEnabled(true);
                k.setEnabled(true);
                if(!tb.b)
                    break label0;
            }
            j.setEnabled(false);
            k.setEnabled(false);
        }
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x76;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x6f;
                    break;
                case 1:
                    key =83;
                    break;
                case 2:
                    key = 96;
                    break;
                case 3:
                    key =124;
                    break;
                default:
                    key = 118;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[] = new String[10];
        as[0] = z(z("\f;\016\0334\033="));
        as[1] = z(z("O\003\017\023\032O\026\016\b\004\026sC"));
        as[2] = z(z("\037!\017\f\023\035'\0319\022\006'&\020\022"));
        as[3] = z(z("\032=\004\0234\033="));
        as[4] = z(z("=6\023\b\031\0356"));
        as[5] = z(z(",;\001\022\021\n"));
        as[6] = z(z("\n+\t\017\002\006=\007*\027\003&\0050\024\003"));
        as[7] = z(z("\n=\024\016\017+6\024\035\037\003 ,\036\032"));
        as[8] = z(z("+6\023\037:\006 \0243\024\0346\022\n\023\035 "));
        as[9] = z(z("*!\022\023\004"));
        z = as;
        String as1[] = new String[16];
        as1[0] = z(z("\0032\031\023\003\033}\r\025\0308:\004\b\036RbUL"));
        as1[1] = z(z("\0032\031\023\003\033}\r\025\030'6\t\033\036\033nQNF"));
        as1[2] = z(z("\n=\024\016\017+6\024\035\037\003 ,\036\032A'\017\fKZ"));
        as1[3] = z(z("\n=\024\016\017+6\024\035\037\003 ,\036\032A?\005\032\002Rf"));
        as1[4] = z(z("\n+\t\017\002\006=\007*\027\003&\0050\024\003}\024\023\006R6\016\b\004\026\027\005\b\027\006?\0230\024\003}\002\023\002\033<\rWE"));
        as1[5] = z(z("\n+\t\017\002\006=\007*\027\003&\0050\024\003}\f\031\020\033nU"));
        as1[6] = z(z("\n+\t\017\002\006=\007*\027\003&\0050\024\003}\022\025\021\007']\037\031\001'\001\025\030\n!N\016\037\b;\024QC"));
        as1[7] = z(z("\037!\017\f\023\035'\0319\022\006'&\020\022A'\017\fK\n+\t\017\002\006=\007*\027\003&\0050\024\003}\002\023\002\033<\rWD"));
        as1[8] = z(z("\037!\017\f\023\035'\0319\022\006'&\020\022A?\005\032\002Rf"));
        as1[9] = z(z("\037!\017\f\023\035'\0319\022\006'&\020\022A!\t\033\036\033n\003\023\030\0332\t\022\023\035}\022\025\021\007'MI"));
        as1[10] = z(z("\r'\016+\037\013'\bA\033\016+H\037\036\0014\"\b\030A7\005\032\027\032?\024+\037\013'\bPV\032=\004\0234\033=N\030\023\t2\025\020\0028:\004\b\036F"));
        as1[11] = z(z("\r'\0164\023\0064\b\bK\0022\030T\025\007=\007>\002\001}\004\031\020\016&\f\b>\n:\007\024\002Cs\025\022\022\000\021\024\022X\0136\006\035\003\003'(\031\037\b;\024U"));
        as1[12] = z(z("\f;\016\0334\033=N\037\023\001'\005\016.R0\017\022\002\016:\016\031\004A$\t\030\002\007yRIY^cP"));
        as1[13] = z(z("\f;\016\0334\033=N\b\031\037n\020\016\031\0376\022\b\017*7\t\b0\0037N\036\031\033'\017\021]^f"));
        as1[14] = z(z("\032=\004\0234\033=N\037\023\001'\005\016.R0\017\022\002\016:\016\031\004A$\t\030\002\007yWIY^cP"));
        as1[15] = z(z("\032=\004\0234\033=N\b\031\037n\003\024\030\b\021\024\022X\033<\020"));
        l = as1;
    }
}